package QL;

import java.util.Map;

public class ButlerGetPlayerInfoOnlineListRequest implements IQLRequest
{
    /// <summary>
    /// 区服Id
    /// </summary>
    public long ZoneId;

    /// <summary>
    /// 第几页？
    /// </summary>
    public long PageIndex;

    /// <summary>
    /// 每页多少人？
    /// </summary>
    public long PageCount;

    /// <summary>
    /// 筛选字段0默认 1vip等级 2金币 3钻石 4积分 5奖券 6青铜弹头 7白银弹头 8黄金弹头 9紫金弹头 10总消耗 11总获得
    /// </summary>
    public long FilterField;

    /// <summary>
    /// 1升序 2降序
    /// </summary>
    public long FilterType;

    /// <summary>
    /// 所在房间：全部房间、低级场、中级场、高级场、免费赛、大奖赛、待机
    /// </summary>
    public String FilterRoom;

    /// <summary>
    /// 0全部 1普通玩家 2商人
    /// </summary>
    public long FilterBusinessman;

    @Override
    public String GetApiName()
    {
        return "butler.get.player.info.online.list";
    }

    @Override
    public void Validate()
    {
    }

    @Override
    public void AddParameters(Map<String, String> map)
    {
        map.put("zone_id", String.valueOf(ZoneId));
        map.put("page_index", String.valueOf(PageIndex));
        map.put("page_count", String.valueOf(PageCount));
        map.put("filter_field", String.valueOf(FilterField));
        map.put("filter_type", String.valueOf(FilterType));
        map.put("filter_room", FilterRoom);
        map.put("filter_businessman", String.valueOf(FilterBusinessman));
    }
}
